<html lang="zh-cn" xmlns：th="http://www.thymeleaf.org" xmlns:th="http://www.w3.org/1999/xhtml">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>导航编辑</title>
    <link rel="stylesheet" href="../../../static/admin/bower_components/bootstrap/dist/css/bootstrap.min.css"
          th:href="@{/admin/bower_components/bootstrap/dist/css/bootstrap.min.css}">
</head>
<body>
<form class="form-horizontal" th:action="@{/admin/editNav}" action="admin/editNav"
      method="post" style="width:1200px;margin-top:20px">

    <input name="id" type="text"  th:value="${nav!=null?nav.id:''}" style="display:none">

    <div class="form-group">
        <label for="InputName" class="col-sm-2 control-label">导航名称</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:value="${nav!=null?nav.name:''}"
                   id="InputName" name="name" placeholder="导航名称">
        </div>
    </div>

    <div class="form-group">
        <label for="InputUrl" class="col-sm-2 control-label">链接地址</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:value="${nav!=null?nav.url:''}"
                   id="InputUrl" name="url" placeholder="链接地址">
        </div>
    </div>
    <div class="form-group">
        <label for="inputTarget" class="col-sm-2 control-label">target</label>
        <div class="col-sm-10">
            <select name="target" class="form-control">
                <option th:value="_blank">blank</option>
                <option th:value="_self">self</option>
                <option th:value="_parent">parent</option>
                <option th:value="_top">top</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="inputStatus" class="col-sm-2 control-label">状态</label>
        <div class="col-sm-10">
            <select name="status" class="form-control">
                <option th:value="1">启用</option>
                <option th:value="0">未启用</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </div>
</form>

</body>
</html>